﻿//Author:Michal Sporna
//License: https://operationsneakpeek.codeplex.com/license

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Screens
{
    public static class MainMenu
    {
        #region properties

        #endregion

        #region draw

        /// <summary>
        /// draw main menu
        /// </summary>
        public static void DrawMainMenu()
        {
            //declare
            Texture2D screenTexture;

            try
            {
                //get texture from cache
                screenTexture = Util.Cache.GetTexture("MainMenuScreen").Text2D;

                if (screenTexture != null)
                {

                    Util.Cache.Draw(screenTexture, new Microsoft.Xna.Framework.Rectangle(0, 0, Util.Cache.GraphicsDevice.Viewport.Width, Util.Cache.GraphicsDevice.Viewport.Height), Color.White);

                   
                }



            }
            catch (Exception ex)
            {
                Util.ErrorLogging.LogError(ex);
            }

        }



        #endregion


    }
}
